<template>
  <div class="app-container">
    <el-dialog title="查看发票" :visible="visible" @close="cancel">
      <el-image :src="pic" fit="scale-down"></el-image>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: 'UploadInvoice',
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    pic: {
      type: String,
      default: ""
    }
  },

  methods: {
    cancel() {
      this.$emit('close', null, false);
    }
  }
}
</script>

<style>
.uploadPic .el-upload-dragger {
  width: 150px;
  height: 150px;
}

</style>
